package com.jzlin.alltools.controller.req;

import com.jzlin.alltools.service.chatai.support.ChatConfig;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Map;

/**
 * sse流问答请求
 *
 * @author Lin
 * @date 2024/10/11
 */
@Data
@ApiModel("sse流问答请求")
public class ChatSseReq {
    @ApiModelProperty("会话id")
    private String sessionId;

    @ApiModelProperty("消息内容，目前只支持text")
    @NotBlank(message = "消息内容不能为空")
    private String message;

    @ApiModelProperty("服务提供商")
    @NotBlank(message = "服务提供商")
    private String vendor;

    @ApiModelProperty("会话配置")
    @NotBlank(message = "会话配置")
    private Map<String, Object> config;

    public void toBaseChatMessage() {

    }
}
